package org.cyborgas.xmltool;

import java.util.LinkedHashMap;
import java.util.Map;

import org.dom4j.Document;
import org.dom4j.Element;
import org.dom4j.Node;

public class MyXmlDocument {
	private Document document;
	private Map namespaces = new LinkedHashMap();

	public MyXmlDocument(Document document) {
		this.document = document;
	}

	public Document getDocument() {
		return document;
	}
	
	public void prepare() {
		//treeWalk(document.getRootElement());
	}
	
//    private void treeWalk(Element element) {
//		namespaces.put(element.getNamespacePrefix(), element.getNamespaceURI());
//		
//        for (int i = 0, size = element.nodeCount(); i < size; i++) {
//			Node node = element.node(i);
//			if (node instanceof Element) {
//				treeWalk((Element) node);
//			} else {
//				// do something....
//			}
//		}
//    }

	
}
